package top.btcmarket.dbutils;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBUtil {
	
	private static final String CONNECTION_DRIVER_STR="com.mysql.jdbc.Driver";

	public static Connection getConnection(String url,String user,String pwd) {
	    Connection conn = null;
	    try {
	        Class.forName(CONNECTION_DRIVER_STR);
	        conn = DriverManager.getConnection(url, user, pwd);
	    } catch (Exception e) {
	        e.printStackTrace();
	    }
	    return conn;
	}
}
